package main

import (
	grpc2 "google.golang.org/grpc"
	"onerk4/zk2/common/global"
	"onerk4/zk2/common/grpc"
	"onerk4/zk2/common/initialize"
	"onerk4/zk2/service/internal"
)

func main() {
	initialize.ConfigInit()
	initialize.InitNaCos()
	initialize.MysqlInit()
	initialize.RedisInit()
	
	nac := global.AppConfig.Nacos.Group
	grpc.RegisterGrpc(nac.Host, nac.Port, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
